package com.neuedu.boot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 金山
 * 项目：boot-learn
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2025/3/2010:35
 */
@RestController
public class LogController {

    Logger logger = LoggerFactory.getLogger(LogController.class);

    @RequestMapping("/log")
    String log(){
        logger.trace("冗余信息-debug");
        logger.debug("调试信息-debug");
        logger.info("用意义的信息-info");

        logger.warn("警告信息-warn");
        logger.error("错误信息-error");

        return "log-success";

    }



}
